/*
 * ========THE SOLMIX PROJECT=====================================
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.gnu.org/licenses/ 
 * or see the FSF site: http://www.fsf.org. 
 */

package org.solmix.api.rpc;

import org.solmix.api.exception.SLXException;

/**
 * 
 * @version $Id$
 */
public interface RPCManagerService
{

   RPCManager getRPCManager( Object requestContext ) throws SLXException;
   // RPCManagerService omitNullMapValuesInResponse(boolean value);
   //
   // RPCManagerService prettyPrintResponse(boolean value);
   //
   // Map<String, Object> getTemplateContext();
   //
   // Object getFromTemplateContext(Object key);
   //
   // void addToTemplateContext(Object key, Object value);
   //
   // void enableAllDataSources();
   //
   // void setREST(boolean newValue);
   //
   // boolean isREST();
   //
   // void writeDocumentDomain(final Writer out) throws IOException;
   //
   // void setCustomHTML(String customHTML);
   //
   // void doCustomResponse();
   //
   // void setResponseCharset(String charset);
   //
   // Object getData();
   //
   // IRPCRequest getRequest();
   //
   // List getRequests();
   //
   // int requestCount();
   //
   // void send(Object data) throws Exception;
   //
   // void send(IRPCResponse rpcResponse) throws Exception;
   //
   // void send(IRPCRequest rpcRequest, IRPCResponse rpcResponse) throws Exception;
   //
   // void send(IRPCRequest rpcRequest, Object data) throws Exception;
   //
   // void sendXMLString(IRPCRequest rpcRequest, String xml) throws Exception;
   //
   // void send(IDSRequest dsRequest, IDSResponse dsResponse) throws Exception;
   //
   // void send(IDSRequest dsRequest, Object data) throws Exception;
   //
   // void sendXMLString(IDSRequest dsRequest, String xml) throws Exception;
   //
   // void sendSuccess(IRPCRequest rpcRequest) throws Exception;
   //
   // void sendFailure(Object request, String error) throws Exception;
   //
   // void sendFailure(Object request, Throwable t) throws Exception;
   //
   // IDSResponse getResponse(IDSRequest req);
   //
   // IRPCResponse getResponse(IRPCRequest req);
   //
   // String encodeParameter(String name, String value);
   //
   // void addRequest(IDSRequest req);
   //
   // void addRequest(IRPCRequest req);
   //
   // Long getTransactionNum();
   //
   // IDataSource getDataSource(String dsName) throws Exception;
   //
   // void freeDataSources() throws Exception;
   //
   // void applyEarlierResponseValues(IDSRequest dsReq) throws Exception;
   //
   // Object findResponseData(String firstOrLast, String dsName, String opType, IDSRequest thisDSReq);
   //
   // Boolean getAuthenticated();
   //
   // void setAuthenticated(boolean authenticated);
   //
   // void setAuthenticated(Boolean newValue);
   //
   // List getUserRoles();
   //
   // void setUserRoles(String rolesString);
   //
   // void setUserRoles(List rolesList);
   //
   // Object getAttribute(String key);
   //
   // void setAttribute(String key, Object value);
   //
   // void removeAttribute(String key);
   //
   // void registerCallback(RPCManagerCompletionCallback callback);
   //
   // int getTransactionPolicy();
   //
   // void setTransactionPolicy(int tp) throws QueueAlreadyStartedException;
   //
   // boolean requestQueueIncludesPriorUpdate(IDSRequest req);
   //
   // boolean requestQueueIncludesUpdates();
   //
   // /**
   // * @return
   // */
   // RequestContext getContext();

}
